package com.twu.biblioteca;

import com.twu.biblioteca.menus.Menu;

import java.util.List;

public class Library {
    private List<Menu> menus;
    private Menu currentMenu;

    public Library(List<Menu> menus) {
        this.menus = menus;
    }

    public Menu getCurrentMenu() {
        return currentMenu;
    }

    public void setCurrentMenu(int currentMenu) {
        this.currentMenu = menus.get(currentMenu);
    }
}
